package com.liqw.service;

import com.liqw.domain.User;
import com.liqw.repository.UserRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserService {
    
    @Autowired
    private UserRepository repository;
    
    public List<User> hello() {
        List<User> list = repository.findAll();
        return list;
    }
}
